package com.zui.entity.product;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.zui.entity.BaseAutoIdEntity;

@Entity
@Table(name="geo_assoc")
public class GeoAssoc extends BaseAutoIdEntity {
	private static final long serialVersionUID = 1L;
	
	private Geo geo;
	private Geo geoTo;
	private GeoAssocType geoAssocType;
	
	@ManyToOne() @JoinColumn(name="geoId")
	public Geo getGeo() {
		return geo;
	}
	@ManyToOne() @JoinColumn(name="geoIdTo")
	public Geo getGeoTo() {
		return geoTo;
	}
	@ManyToOne
	@JoinColumn(name="geoAssocTypeId")
	public GeoAssocType getGeoAssocType() {
		return geoAssocType;
	}
	public void setGeo(Geo geo) {
		this.geo = geo;
	}
	public void setGeoTo(Geo geoTo) {
		this.geoTo = geoTo;
	}
	public void setGeoAssocType(GeoAssocType geoAssocType) {
		this.geoAssocType = geoAssocType;
	}
	
	
}
